package com.zusmart.core.proxy.support.cglib;

import java.lang.reflect.Method;

import com.zusmart.base.util.Assert;
import com.zusmart.core.proxy.support.AbstractProxyMethod;

import net.sf.cglib.proxy.MethodProxy;

public abstract class AbstractCglibProxyMethod extends AbstractProxyMethod {

	protected final MethodProxy targetMethodProxy;

	protected AbstractCglibProxyMethod(Method targetMethod, MethodProxy targetMethodProxy) {
		super(targetMethod);
		Assert.isNull(targetMethodProxy, "cglib method proxy must not be null");
		this.targetMethodProxy = targetMethodProxy;
	}

	public MethodProxy getTargetMethodProxy() {
		return targetMethodProxy;
	}

}